﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PrinterProject.Models;

namespace PrinterProject.Services
{
    public class UserServices
    {
        PrinterEntities printerDB = new PrinterEntities();

        public bool VerifyUserUnicity(string username, string password)
        {
            if (printerDB.Users.Select(a => a.UserName == username && a.Password == password).ToList().Any())
            {
                return true;
            }
            return false;
        }
    }
}
